package com.wanmait.schedule.controller;


import com.wanmait.schedule.service.CompanyUserService;
import com.wanmait.schedule.util.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 * 企业用户表 前端控制器
 * </p>
 *
 * @author wanmait
 * @since 2022-03-02
 */
@RestController
@RequestMapping("/companyUser")
public class CompanyUserController {
    @Resource
    private CompanyUserService companyUserService;
    @GetMapping("positionList/{id}")
    public Result positionList(@PathVariable Integer id){
        return Result.success(companyUserService.findCompanyUser(id));
    }

}
